<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/css/H-ui.admin.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/style.css">
    <%--<script src="${ctx}/libjs/jquery.min.js"></script>--%>
    <%--<script src="${ctx}/libjs/bootstrap.js"></script>--%>
    <script type="text/javascript"
            src="https://webapi.amap.com/maps?v=1.3&key=e392de55be62b195115e32b97043a1bd&plugin=AMap.Autocomplete,AMap.PlaceSearch"></script>
    <script type="text/javascript" src="${ctx}/appjs/system/setting.js"></script>
    <style>
        .layui-form-checkbox i{
            border-left:1px solid #d2d2d2
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">系统设置</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>设置</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>设置</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">设置</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content" style="padding-bottom: 150px">
                    <form class="form-horizontal m-t layui-form" id="frmSetting">
                        <input id="applySettingId" name="applySettingId" value="${setting.applySettingId}" type="hidden">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">审核方式：</label>
                            <div class="col-sm-4">
                                <input type="radio"  name="settingType" value="1"
                                       <c:if test="${setting.settingType eq '1'}">checked</c:if>>自动审核
                            </div>
                        </div>
                        <div class="form-group row" id="settingType1">
                            <label class="col-sm-3 col-form-label text-right"></label>
                            <div class="col-sm-8">
                                <input type="checkbox"  id="enterpriseApplyType" name="enterpriseApplyType" value="1"
                                   <c:if test="${setting.enterpriseApplyType eq '1'}">checked</c:if>>企业列表审核
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;" id="enterpriseMemberApplyType" name="enterpriseMemberApplyType" value="1"
                                       <c:if test="${setting.enterpriseMemberApplyType eq '1'}">checked</c:if>>企业成员审核</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;" id="channelApplyType" name="channelApplyType" value="1"
                                       <c:if test="${setting.channelApplyType eq '1'}">checked</c:if>>渠道商审核</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;" id="operatorApplyType" name="operatorApplyType" value="1"
                                       <c:if test="${setting.operatorApplyType eq '1'}">checked</c:if>>加盟商审核</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox" id="advanceApplyType" name="advanceApplyType" value="1"
                                       <c:if test="${setting.advanceApplyType eq '1'}">checked</c:if>>评价列表审核</span>
                            </div>
                        </div>
                        <div class="form-group row" id="settingType2">
                            <label class="col-sm-3 col-form-label text-right"></label>
                            <div class="col-sm-8">
                                    <input type="checkbox" style="margin-left: 20px;" id="memberRefundApplyType" name="memberRefundApplyType" value="1"
                                       <c:if test="${setting.memberRefundApplyType eq '1'}">checked</c:if>>退款申请列表审核
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;" id="invoiceApplyType" name="invoiceApplyType" value="1"
                                       <c:if test="${setting.invoiceApplyType eq '1'}">checked</c:if>>开票审核</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;" id="cardApplyType" name="cardApplyType" value="1"
                                       <c:if test="${setting.cardApplyType eq '1'}">checked</c:if>>卡券申请审核</span>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right"></label>
                            <div class="col-sm-4">
                                <input type="radio"  name="settingType" value="0"
                                       <c:if test="${setting.settingType eq '0'}">checked</c:if>>手动审核
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">账期：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="accountPeriod" value="${setting.accountPeriod}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">心跳间隔时间：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"  name="hearbeatTime" value="${setting.hearbeatTime}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">超时次数：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"  name="hearbeatOvertime" value="${setting.hearbeatOvertime}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">单价金额小数位：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"  name="priceUnit" value="${setting.priceUnit}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">总金额小数位：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"  name="countUnit" value="${setting.countUnit}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">电池容量：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"  name="bmsPower" value="${setting.bmsPower}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">占位费：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"  name="occupyAmount" value="${setting.occupyAmount}">
                            </div>
                        </div>
                        <div class="form-group row" >
                            <label class="col-sm-3 col-form-label text-right"></label>
                            <div class="col-sm-8">
                                <input type="checkbox"  name="chargeType" value="1"
                                       <c:if test="${setting.chargeType eq '1'}">checked</c:if>>充电费总金额
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;"  name="serviceType" value="1"
                                           <c:if test="${setting.serviceType eq '1'}">checked</c:if>>服务费总金额</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;"  name="pileFeeType" value="1"
                                           <c:if test="${setting.pileFeeType eq '1'}">checked</c:if>>占桩费总金额</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;" name="incomeType" value="1"
                                           <c:if test="${setting.incomeType eq '1'}">checked</c:if>>收益总金额</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox" name="rechargeType" value="1"
                                           <c:if test="${setting.rechargeType eq '1'}">checked</c:if>>累计充值额</span>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right"></label>
                            <div class="col-sm-8">
                                <input type="checkbox"  name="walletType" value="1"
                                       <c:if test="${setting.walletType eq '1'}">checked</c:if>>钱包余额
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;"  name="favorableType" value="1"
                                           <c:if test="${setting.favorableType eq '1'}">checked</c:if>>优惠金额</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;"  name="handlingFeeType" value="1"
                                           <c:if test="${setting.handlingFeeType eq '1'}">checked</c:if>>手续费</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;" name="withdrawalType" value="1"
                                           <c:if test="${setting.withdrawalType eq '1'}">checked</c:if>>提现金额</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox"  name="refundType" value="1"
                                           <c:if test="${setting.refundType eq '1'}">checked</c:if>>退款金额</span>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right"></label>
                            <div class="col-sm-8">
                                <input type="checkbox" style="margin-left: 20px;"  name="settlementType" value="1"
                                       <c:if test="${setting.settlementType eq '1'}">checked</c:if>>结算金额
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;" name="creditLineType" value="1"
                                           <c:if test="${setting.creditLineType eq '1'}">checked</c:if>>授信额</span>
                                <span style="margin-left: 20px">
                                    <input type="checkbox" style="margin-left: 20px;"  name="billingType" value="1"
                                           <c:if test="${setting.billingType eq '1'}">checked</c:if>>开票金额</span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <button type="submit" class="btn btn-primary">保存</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    //重新加载的方法
    layui.use(['table', 'laydate','element'], function () {
        var table = layui.table, form = layui.form, $ = layui.jquery;
    });

    /*jQuery("#file").change(function () {
        var objUrl = getObjectURL(this.files[0]);//获取文件信息
        if (objUrl) {
            jQuery("#imgUrl").attr("src", objUrl);
        }
    });

    function getObjectURL(file) {
        var url = null;
        if (window.createObjectURL != undefined) {
            url = window.createObjectURL(file);
        } else if (window.URL != undefined) { // mozilla(firefox)
            url = window.URL.createObjectURL(file);
        } else if (window.webkitURL != undefined) { // webkit or chrome
            url = window.webkitURL.createObjectURL(file);
        }
        return url;
    }*/
    setting.init();
</script>
</body>
</html>
